package com.gin.kotlin.gf2gamecommunity.pagingsource

import com.gin.kotlin.gf2gamecommunity.app.App
import com.gin.kotlin.response.ListData
import com.gin.kotlin.response.strategy.StrategyTopic

class StrategyPagingSource(private val subStrategyId: Int) : AbstractListDataPagingSource<StrategyTopic, ListData<StrategyTopic>>() {
    override fun request(page: Int, size: Int) = App.INSTANCE.api.strategyApi.getStrategies(
        classifyId = subStrategyId,
        page = page,
        size = size,
    )

    companion object {
        private val TAG = StrategyPagingSource::class.java.simpleName
    }
}